package stx.com.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import stx.com.entity.TDiary;
import stx.com.service.DiaryService;

@Controller
public class UpdateDiaryController {

	@Resource
	private DiaryService diaryService;
	
	@RequestMapping("haa.do")
	public String upadteDiary(TDiary diary,HttpServletRequest request){
		System.out.println("djddjdj");
		if(diaryService.updateDiary(diary)){
			return "1"; 
		}
		return "false";
	}
}
